#! python
# -*- coding: utf-8 -*-
from objects_on_map import Pixel, get_around_pixels, get_cross_pixels
from noise import get_around_pixels as get_around_pixels_c

if __name__ == '__main__':
    offset = 1

    pixel = Pixel()
    pixel.x = 74
    pixel.y = 94

    #get_cross_pixels(pixel, offset, [ [0, 0, 0, 0, 0], [0, 0, 1, 0, 0], [0, 1, 0, 0, 0] ])

    """
    pixel.x = 74
    pixel.y = 94
    [[73, 93], [74, 93], [75, 93], [73, 94], [75, 94], [73, 95], [74, 95], [75, 95]]

    pixel.x = 93
    pixel.y = 94
    [[92, 93], [93, 93], [94, 93], [92, 94], [94, 94], [92, 95], [93, 95], [94, 95]]

    95 95
    [[94, 94], [95, 94], [96, 94], [94, 95], [96, 95], [94, 96], [95, 96], [96, 96]]

    94 98
    [[93, 97], [94, 97], [95, 97], [93, 98], [95, 98], [93, 99], [94, 99], [95, 99]]
    """
    print "from Python"
    print get_around_pixels(pixel, offset)
    print

    print "from C extension:"
    print get_around_pixels_c(pixel, offset)